import { BuffType } from 'js/typeDefine/typeDefine'
export default {
    strMax: 10,//最高强化等级
    mainAttri: {
        maxHp: [1, 2],
        attack: [1, 2],
        def: [1, 2],
        puncture: [1, 2],
        // lDef: [1, 2],//[1, 2]
        // sDef: [1, 2],//[1, 2]
        // fDef: [1, 2],//[1, 2]
        // allDef: [1, 2],
        attackSpeed: [1, 0.5],
        hit: [0.5, 0.5],
        dodge: [0.5, 0.5],
        crit: [0.5, 0.5],
        antiCrit: [0.5, 0.5],
        recoverHp: [1, 0.5],
        critHurt: [0.5, 0.5],
        antiCritHurt: [0.5, 0.5],
        addAnger: [1, 1],
        angerMax: [1, 1],
    },
    treasureAttri: {
        maxHp: [5, 1],
        attack: [5, 1],
        def: [5, 1],
        puncture: [5, 1],
        // lDef: [2, 1],//[5,1]
        // sDef: [2, 1],//[5,1]
        // fDef: [2, 1],//[5,1]
        // allDef: [5, 1],
        attackSpeed: [5, 1],
        hit: [5, 1],
        dodge: [5, 1],
        crit: [5, 1],
        antiCrit: [5, 1],
        recoverHp: [5, 1],
        critHurt: [5, 1],
        antiCritHurt: [5, 1],
        addAnger: [5, 1],
        angerMax: [5, 1],
    },
    partIndex: {
        hand: 1, finger: 2, palm: 3, wrist: 4, head: 5, body: 6,
        waist: 7, neck: 8, foot: 9, cloak: 10
    },
    equipmentParts: ['hand', 'subHand', 'head', 'neck', 'finger', 'palm', 'body', 'cloak', 'wrist',
        'foot', 'waist'],
    quality: ['普通', '优秀', '卓越', '完美', '史诗', '传说'],
    smithingTableInfor: '这里是莫愁神匠门的工作台,老神匠莫千将已经很久没来这里了,他的徒子徒孙们在这里忙碌着。你可以在这里给装备升星。',
    strengthenUp: 0.05,//强化一级提升主属性5%
    qualityUp: 0.1,//品级一级提升主属性10%
    valueRandomRange: [80, 100],//基础属性波动范围80%-100%
    //升星消耗
    equipmentStrNeed: {
        items: [
            { itemID: 170005, amount: [1, 1, 0.05], limitLvl: [20, 1000] },
            { itemID: 170015, amount: [1, 2, 0.1], limitLvl: [20, 1000] },
        ],
        resourceItems: [
            { itemID: 170001, amount: [10, 10, 1] },
            { itemID: 170002, amount: [10, 10, 1] },
            // { itemID: 'money', amount: [50, 50, 5] },
        ]
    },
    getBackPerWhenSellItemOfStr: 80,//升星装备宝物回收返还材料百分比
    //强化消耗
    partStrNeed: {
        items: [
            { itemID: 170015, amount: [2, 2, 0.2] },
            { itemID: 170005, amount: [1, 1, 0.05], limitLvl: [21, 1000] },
            { itemID: 'diamond', amount: [0, 2], limitLvl: [51, 1000] },
            { itemID: 'gold', amount: [100, 100, 1], limitLvl: [0, 50] },
        ],
        resourceItems: [
            { itemID: 170001, amount: [2, 2, 0.2], limitLvl: [0, 20] },
            { itemID: 170002, amount: [2, 2, 0.2], limitLvl: [0, 20] },
            // { itemID: 'money', amount: [50, 50, 0.2] },
        ]
    },
    addHoleNeed: [170010, 1],
    holeAmountMax: 4,
    partStrUpNum: {
        // hand: [0, 1],
        // finger: [0, 1],
        // palm: [0, 1],
        // wrist: [0, 1],
        // head: [0, 1],
        // body: [0, 1],
        // waist: [0, 1],
        // neck: [0, 0.1],
        // foot: [0, 0.3],
        // cloak: [0, 1]
        hand: [0.2, 1],
        finger: [0.1, 1],
        palm: [0.1, 1],
        wrist: [0.1, 1],
        head: [0.1, 1],
        body: [0.1, 1],
        waist: [0.1, 1],
        neck: [0.1, 1],
        foot: [0.1, 1],
        cloak: [0.1, 1],
        subHand: [0.1, 1],
    },
    subAttriInfo: {
        list: ['attri', 'attri', 'attri', 'attri', 'reduceSkillCd', 'addSkillHurt'],
        fantasyDefList: ['attri', 'attri', 'attri', 'attri', 'attri', 'reduceAttackHurt', 'antiRealHurt', 'reduceSkillHurt'],
        fantasyList: ['attri', 'attri', 'attri', 'attri', 'attri', 'bloodHpPer', 'addAttackHurt', 'realHurt', 'reduceSkillCd', 'addSkillHurt'],
        subAttriAmountByQuality: [1, 2, 3, 4, 5, 6],
        subAttriList: ["def", "maxHp", "crit", "critHurt", "recoverHp", "hit", "dodge"],
        subSkillList: [130201, 130202, 130203, 130204, 130205, 130206, 130207, 130208, 130209, 130210, 130211,
            130212, 130213, 130214, 130215, 130216],
        subBuffStatueList: [BuffType.Blood, BuffType.Poison, BuffType.Pojia, BuffType.XueRuo, BuffType.ZhiMang, BuffType.YiShang],
        subAttriValue: {
            maxHp: [1, 1],
            def: [1, 1],
            puncture: [1, 1],
            lDef: [1, 0.5],
            sDef: [1, 0.5],
            fDef: [1, 0.5],
            recoverHp: [1, 0.5]
        },
        subAttriValue2: {
            crit: [1, 4, 0.3],
            critHurt: [2, 4, 0.5],
            hit: [1, 3, 0.3],
            dodge: [1, 3, 0.3],
        },
        reduceSkillCd: [0.5, 2, 0.1],
        addSkillHurt: [2, 4.5, 0.7],//[3, 7, 1]
        reduceSkillHurt: [1, 3, 0.5],//[3, 7, 1]
        bloodHpPer: [1, 5, 1],
        addAttackHurt: [1, 5, 1],
        realHurt: [1, 5, 1],
        antiRealHurt: [1, 5, 1],
        reduceAttackHurt: [1, 5, 1],
    },
    //每点属性对应的战力值
    fcOfAttris: {
        maxHp: 1,
        attack: 5,
        def: 1, //护甲
        puncture: 1, //穿透
        lDef: 3,//电伤防御
        sDef: 3,//毒伤防御
        fDef: 3,//火伤防御
        allDef: 9,//全抗
        attackSpeed: 1,//攻速
        hit: 3, //命中
        dodge: 3, //闪避
        crit: 5, //暴击
        antiCrit: 5, //暴击抵抗
        recoverHp: 2,//生命恢复
        critHurt: 1, //暴击伤害
        antiCritHurt: 1, //暴伤抗性
        reduceLHurt: 1,//电伤减免
        reduceSHurt: 1,//毒伤减免
        reduceFHurt: 1,//火伤减免
        reduceHurt: 3,//减伤
        injured: 1, //易伤
        lHurt: 1,//法伤加成
        sHurt: 1,//毒伤加成
        fHurt: 1,//火伤加成
        skillHurt: 1, //技能伤害加成
        reduceSkillCd: 200,//cd 20->200
        addSkillHurt: 10,
        reduceAttackHurt: 5,
        antiRealHurt: 5,
        reduceSkillHurt: 5,//技能伤害减免
        addAttackHurt: 10,
        realHurt: 5,
        bloodHpPer: 10,
    },
    destroyGet: {
        itemID: 170015,
        amount: [1, 1]
    },
    skillAttriRate: [{ skill: null, rate: 1 }, { skill: 'random', rate: 4 }, { skill: 'all', rate: 1 }]
}